home *** CD-ROM | disk | FTP | other *** search
- PROGRAM Edge2(input,output,picfile);
-
- { Copyright (c) 1987, Ciarcia's Circuit Cellar }
- { All Rights Reserved }
-
- {$U- control-break checking during execution }
- {$C- control-break checking during I/O operations }
- {$R- array range checking }
-
- {$Ideclares.p declarations }
- {$Ihexutil.p hex utilities }
- {$Iserial.p serial interface code }
- {$Ipictures.p picture file code }
- {$Iimages.p image processing }
-
- BEGIN
-
- LowVideo;
-
- pic1 := NIL; { ensure new alloc }
- PicSetup(pic1); { set up picture array }
-
- filespec := GetFSpec(ParamStr(1));
-
- LoadPicture(filespec,pic1);
-
- pic2 := NIL; { get output array }
- PicSetup(pic2);
- SetSyncs(pic2);
-
- Writeln('Locating edges...');
- Edge(pic1,pic2);
-
- IF ParamStr(2) <> ''
- THEN filespec := ParamStr(2);
-
- SavePicture(filespec,pic2);
-
- END.